package com.supermarket.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.supermarket.dao.UserDao;
import com.supermarket.model.User;
import com.supermarket.service.IUserFunction;
@Service
public class UserFuncionImpl implements IUserFunction {


	UserDao uDao;

	public UserDao getuDao() {
		return uDao;
	}

	@Autowired
	public void setuDao(UserDao uDao) {
		this.uDao = uDao;
	}

	public User login(String name,String password) throws Exception {
		
		User user = uDao.login(name,password);
		return user;
	}
}
